// 使用自己封装的api
import request from '@/api/http'

function getStudentList(params) {
    return request({
      url: '/admin/xy/student/list',
      method: 'get',
      params
    })
}
function saveStudent(params) {
    return request({
      url: '/admin/xy/student/save',
      method: 'post',
      params
    })
}
function updateStudent(params) {
  return request({
    url: '/admin/xy/student/update',
    method: 'post',
    params
  })
}

function studentById(params) {
    return request({
      url: '/admin/xy/student/detail',
      method: 'get',
      params
    })
}
function delStudent(params) {
  return request({
    url: '/admin/xy/student/del',
    method: 'get',
    params
  })
}

export default {
    getStudentList,
    saveStudent,
    updateStudent,
    studentById,
    delStudent
}